package com.cd.music.config;

import com.cd.music.interceptor.AuthInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author yxl 余秀良
 * @version 1.0
 * @description: 用途
 * @date 2018年03月08日  下午1:41
 * @address: 四川成都
 */

@Configuration
public class AuthConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AuthInterceptor());
        super.addInterceptors(registry);
    }
}
